﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.IRepository;
using Alos.IService;
using PetaPoco;
using Alos.Entity;
using Alos.Common;

namespace Alos.Service
{
    public class ReSubmitRecordService : BaseService<ReSubmitRecord>, IReSubmitRecordService
    {        
        IReSubmitRecordRepository ReSubmitRecordRepository;      
        public ReSubmitRecordService(IReSubmitRecordRepository _ReSubmitRecordRepository)
        {
            ReSubmitRecordRepository = _ReSubmitRecordRepository;
        }
        /// <summary>
        /// 学生提交记录
        /// </summary>
        /// <param name="id"></param>
        /// <param name="roleid"></param>
        /// <returns></returns>
        public int CreateReSubmitRecord(ReSubmitRecord ReSubmitRecord) 
        {
            return ReSubmitRecordRepository.CreateReSubmitRecord(ReSubmitRecord);
        }
        /// <summary>
        /// 修改学生提交记录
        /// </summary>
        /// <param name="ArrangeID">发布记录ID</param>   
        ///  <param name="StudentID">学生ID</param>    
        /// <returns></returns>
        public bool UpdateSubmitRecord(string ArrangeID, int ResourceID, int StudentID)
        {
            return ReSubmitRecordRepository.UpdateSubmitRecord(ArrangeID,ResourceID, StudentID);
        }
    }
}
